ngram model
Transferring Extreme Subword Style Using Ngram Model-Based Logit Scaling
Messner, Craig, Lippincott, Tom
We present an ngram model-based logit scaling technique that effectively transfers extreme subword stylistic variation to large language models at inference time. We demonstrate its efficacy by tracking the perplexity of generated text with respect to the ngram interpolated and original versions of an evaluation model. Minimizing the former measure while the latter approaches the perplexity of a text produced by a target author or character lets us select a sufficient degree of adaptation while retaining fluency.
- North America > United States (0.28)
- Oceania > Australia (0.14)
- North America > Mexico > Mexico City (0.14)
- (2 more...)
Interpretable Language Modeling via Induction-head Ngram Models
Kim, Eunji, Mantena, Sriya, Yang, Weiwei, Singh, Chandan, Yoon, Sungroh, Gao, Jianfeng
Recent large language models (LLMs) have excelled across a wide range of tasks, but their use in high-stakes and compute-limited settings has intensified the demand for interpretability and efficiency. We address this need by proposing Induction-head ngram models (Induction-Gram), a method that builds an efficient, interpretable LM by bolstering modern ngram models with a hand-engineered "induction head". This induction head uses a custom neural similarity metric to efficiently search the model's input context for potential next-word completions. This process enables Induction-Gram to provide ngram-level grounding for each generated token. Moreover, experiments show that this simple method significantly improves next-word prediction over baseline interpretable models (up to 26%p) and can be used to speed up LLM inference for large models through speculative decoding. We further study Induction-Gram in a natural-language neuroscience setting, where the goal is to predict the next fMRI response in a sequence. It again provides a significant improvement over interpretable models (20% relative increase in the correlation of predicted fMRI responses), potentially enabling deeper scientific investigation of language selectivity in the brain. The code is available at https://github.com/ejkim47/induction-gram.
- Asia > South Korea > Seoul > Seoul (0.04)
- Europe > United Kingdom > England > Lincolnshire (0.04)
- North America > United States > Texas > Travis County > Austin (0.04)
- (2 more...)
- Research Report > New Finding (0.67)
- Research Report > Experimental Study (0.46)